home *** CD-ROM | disk | FTP | other *** search
- Path: uni-erlangen.de!winx03!sunshine!schoof
- From: schoof@informatik.uni-wuerzburg.de (Jochen Schoof)
- Newsgroups: comp.lang.c
- Subject: Re: Newbie doesn't understand compiler error
- Date: 21 Mar 1996 13:35:07 GMT
- Organization: University of Wuerzburg, Germany
- Message-ID: <4irlub$jtn@winx03.informatik.uni-wuerzburg.de>
- References: <Pine.SUN.3.91.960301153010.11258B-100000@pioneer.uspto.gov> <4hoffl$l74@aphex.direct.ca>
- NNTP-Posting-Host: wi2x01.informatik.uni-wuerzburg.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Ed Toivanen (etoivane@direct.ca) wrote:
- :
- : >
- : >main( int argv, char *argc[] ) <<- Compiler states "Syntax error at or near
- :
- : Try
- : main(int argc, char* argv[])
- :
- : That should fixn things up.
-
- I don't see why. If the program does not compile with the given
- definition it most likely won't do so either with your suggestion.
- The names of variables can be chosen arbitrarily - even for the
- parameters of main(). Using argc as the argument counter and
- argv as the pointer to the arguments is sort of convention, but
- not required by the standard. Interchanging these two is not the
- best idea but however legal C.
-
- Most likely the diagnosed error occurs in the next line. Unfortunately
- the original posting is not available at my place, so I can not help
- any further.
-
- - Jochen
-
- --
- --------------------------------------------------------------------------
- Jochen Schoof mailto:schoof@informatik.uni-wuerzburg.de
- Lehrstuhl fuer Informatik II +-------------------------------------------
- Universitaet Wuerzburg | You are just reading a .sig-light:
- D-97074 Wuerzburg (Germany) | It is free of fat, sugar and cholesterol!
- ------------------------------+-------------------------------------------
- WWW-Homepage: http://www.informatik.uni-wuerzburg.de/staff/joscho
- --------------------------------------------------------------------------
-